package com.qishen.operation.controller;


import com.qishen.apis.TbEmployeeControllerApi;
import com.qishen.operation.service.TbEmoloyeeService;
import com.san.model.common.dtos.ResponseResult;
import com.san.model.operation.dtos.TbEmployeeDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("")
public class TbEmployeeController implements TbEmployeeControllerApi {

    @Autowired
    private TbEmoloyeeService channelService;
    @PostMapping("/")

    @Override
    public ResponseResult findByNameAndPage(@RequestBody TbEmployeeDto dto) {
        return channelService.findByNameAndPage(dto);
    }
}
